package com.kkb.mapper;

import com.kkb.pojo.TQuestionItem;
import com.kkb.pojo.TQuestionItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TQuestionItemMapper {
    long countByExample(TQuestionItemExample example);

    int deleteByExample(TQuestionItemExample example);

    int deleteByPrimaryKey(Integer id);

    //添加选项
    int insert(TQuestionItem record);

    int insertSelective(TQuestionItem record);

    List<TQuestionItem> selectByExample(TQuestionItemExample example);

    TQuestionItem selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TQuestionItem record, @Param("example") TQuestionItemExample example);

    int updateByExample(@Param("record") TQuestionItem record, @Param("example") TQuestionItemExample example);

    //更新选项
    int updateByPrimaryKeySelective(TQuestionItem record);

    int updateByPrimaryKey(TQuestionItem record);

    //基于题目ID，获取题目选项列表
    List<TQuestionItem> selectListByQuestionId(Integer id);
}